Maven: The Definitive Guide by Company Sonatype

Maven: The Definitive Guide by Company Sonatype

Author:Company, Sonatype [Sonatype Company]
Language: eng
Format: epub
Tags: COMPUTERS / Programming Languages / General
ISBN: 9780596551780
Publisher: O'Reilly Media
Published: 2009-02-08T16:00:00+00:00


The includes section uses a list of include elements, which contain path patterns. These patterns may contain wildcards, such as **, which matches one or more directories, or *, which matches part of a filename, and ?, which matches a single character in a filename. Example 12-7 uses a fileMode entry to specify that files in this set should be readable by all, but only writable by the owner. Since the fileSet includes directories, we also have the option of specifying a directoryMode that works in much the same way as the fileMode. Since a directory’s execute permission is what allows users to list its contents, we want to make sure directories are executable in addition to being readable. Like files, only the owner can write to directories in this set.

The fileSet entry offers some other options as well. First, it allows for an excludes section with a form identical to the includes section. These exclusion patterns allow you to exclude specific file patterns from a fileSet. Include patterns take precedence over exclude patterns. Additionally, you can set the filtering flag to true if you want to substitute property values for expressions within the included files. Expressions can be delimited either by ${ and } (standard Maven expressions such as ${project.groupId}) or by @ and @ (standard Ant expressions such as @project.groupId@). You can adjust the line ending of your files using the lineEnding element. Valid values for lineEnding are:

keep

Preserve line endings from original files (this is the default value)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.